package com.winit.schedule.webc.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.winit.schedule.webc.annotation.Controller;
import com.winit.schedule.webc.annotation.RequestMapping;

@Controller
public class DemoController {

    public DemoController(){

    }

    @RequestMapping("startJob")
    public String start(HttpServletRequest req, HttpServletResponse resp) {

        System.out.println("come on startJob");

        return "ok";
    }

    @RequestMapping("stopJob")
    public String stop(HttpServletRequest req, HttpServletResponse resp) {
        System.out.println("come on stopJob");
        return "ok";
    }

    @RequestMapping("notAllow")
    private String notAllow() {
        return "";
    }

}
